<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>字体样式 | 你好,欢迎来到MyNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../lesson/css/0725-2.html" />
    
    
    <link rel="prev" href="../../lesson/css/20170725.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.2.1"
        data-chapter-title="字体样式"
        data-filepath="lesson/css/0725-1.md"
        data-basepath="../.."
        data-revision="Thu Aug 31 2017 12:00:31 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="lesson/html/HTML.html">
            
                
                    <a href="../../lesson/html/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        一.HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="lesson/html/20170718.html">
            
                
                    <a href="../../lesson/html/20170718.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="lesson/html/0718-3.html">
            
                
                    <a href="../../lesson/html/0718-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="lesson/html/0718-2.html">
            
                
                    <a href="../../lesson/html/0718-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        注释标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="lesson/html/0718-1.html">
            
                
                    <a href="../../lesson/html/0718-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        块级和行内元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="lesson/html/20170719.html">
            
                
                    <a href="../../lesson/html/20170719.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="lesson/html/0719-3.html">
            
                
                    <a href="../../lesson/html/0719-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="lesson/html/0719-4.html">
            
                
                    <a href="../../lesson/html/0719-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="lesson/html/0719-1.html">
            
                
                    <a href="../../lesson/html/0719-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        audio音频标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="lesson/html/0719-2.html">
            
                
                    <a href="../../lesson/html/0719-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.4.</b>
                        
                        video音频标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="lesson/html/20170720.html">
            
                
                    <a href="../../lesson/html/20170720.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="lesson/html/input.html">
            
                
                    <a href="../../lesson/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        课后补充
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="lesson/html/0720-1.html">
            
                
                    <a href="../../lesson/html/0720-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        HTML表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="lesson/html/0720-2.html">
            
                
                    <a href="../../lesson/html/0720-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="lesson/html/20170721.html">
            
                
                    <a href="../../lesson/html/20170721.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="lesson/html/0721-5.html">
            
                
                    <a href="../../lesson/html/0721-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="lesson/html/0721-2.html">
            
                
                    <a href="../../lesson/html/0721-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        自定义列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="lesson/html/0721-3.html">
            
                
                    <a href="../../lesson/html/0721-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        iframe内嵌框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="lesson/html/0721-4.html">
            
                
                    <a href="../../lesson/html/0721-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="lesson/html/0721-1.html">
            
                
                    <a href="../../lesson/html/0721-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.5.</b>
                        
                        图片的热区hotmap
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="lesson/css/CSS.html">
            
                
                    <a href="../../lesson/css/CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        二.CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="lesson/css/20170724.html">
            
                
                    <a href="../../lesson/css/20170724.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="lesson/css/0724-1.html">
            
                
                    <a href="../../lesson/css/0724-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="lesson/css/0724-3.html">
            
                
                    <a href="../../lesson/css/0724-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        ID选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="lesson/css/0724-4.html">
            
                
                    <a href="../../lesson/css/0724-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="lesson/css/0724-5.html">
            
                
                    <a href="../../lesson/css/0724-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="lesson/css/扩展.html">
            
                
                    <a href="../../lesson/css/扩展.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="lesson/css/扩展2.html">
            
                
                    <a href="../../lesson/css/扩展2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="lesson/css/0724-2.html">
            
                
                    <a href="../../lesson/css/0724-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        class类选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="lesson/css/20170725.html">
            
                
                    <a href="../../lesson/css/20170725.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.2.1" data-path="lesson/css/0725-1.html">
            
                
                    <a href="../../lesson/css/0725-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="lesson/css/0725-2.html">
            
                
                    <a href="../../lesson/css/0725-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        文本描述
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="lesson/css/0725-3.html">
            
                
                    <a href="../../lesson/css/0725-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文字阴影
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="lesson/css/0725-4.html">
            
                
                    <a href="../../lesson/css/0725-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        字体嵌入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="lesson/css/0725-5.html">
            
                
                    <a href="../../lesson/css/0725-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        CSS颜色
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="lesson/css/20170726.html">
            
                
                    <a href="../../lesson/css/20170726.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="lesson/css/0726-1.html">
            
                
                    <a href="../../lesson/css/0726-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        border边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="lesson/css/0726-2.html">
            
                
                    <a href="../../lesson/css/0726-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        background背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="lesson/css/20170727.html">
            
                
                    <a href="../../lesson/css/20170727.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="lesson/css/0727-2.html">
            
                
                    <a href="../../lesson/css/0727-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        文字溢出
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="lesson/css/0727-3.html">
            
                
                    <a href="../../lesson/css/0727-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        word-break
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="lesson/css/0727-1.html">
            
                
                    <a href="../../lesson/css/0727-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.3.</b>
                        
                        文字对齐方式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="lesson/css/20170728.html">
            
                
                    <a href="../../lesson/css/20170728.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        第五节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="lesson/css/0728-1.html">
            
                
                    <a href="../../lesson/css/0728-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.1.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="lesson/css/0728-2.html">
            
                
                    <a href="../../lesson/css/0728-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.2.</b>
                        
                        z-index
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="lesson/css/20170731.html">
            
                
                    <a href="../../lesson/css/20170731.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        第六节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="lesson/css/20170801.html">
            
                
                    <a href="../../lesson/css/20170801.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        第七节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="lesson/css/0801-2.html">
            
                
                    <a href="../../lesson/css/0801-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.1.</b>
                        
                        git安装使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="lesson/css/0801-1.html">
            
                
                    <a href="../../lesson/css/0801-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.2.</b>
                        
                        SASS安装使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="lesson/css/20170802.html">
            
                
                    <a href="../../lesson/css/20170802.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        第八节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.8.1" data-path="lesson/css/0802-1.html">
            
                
                    <a href="../../lesson/css/0802-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.1.</b>
                        
                        css3 过渡（transition）
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8.2" data-path="lesson/css/0802-2.html">
            
                
                    <a href="../../lesson/css/0802-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.2.</b>
                        
                        css3 变换（transform）
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="lesson/css/20170803.html">
            
                
                    <a href="../../lesson/css/20170803.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        第九节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="lesson/css/20170804.html">
            
                
                    <a href="../../lesson/css/20170804.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        第十节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="lesson/css/0804-1.html">
            
                
                    <a href="../../lesson/css/0804-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.1.</b>
                        
                        滤镜
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="lesson/media/media.html">
            
                
                    <a href="../../lesson/media/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        三.项目期间
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="lesson/css/20170807.html">
            
                
                    <a href="../../lesson/css/20170807.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        鲁班项目(第一天)
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="lesson/css/20170808.html">
            
                
                    <a href="../../lesson/css/20170808.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.1.</b>
                        
                        鲁班项目(第二天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="lesson/css/20170809.html">
            
                
                    <a href="../../lesson/css/20170809.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.2.</b>
                        
                        鲁班项目(第三天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="lesson/css/20170811.html">
            
                
                    <a href="../../lesson/css/20170811.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.3.</b>
                        
                        鲁班项目(第四天)
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="lesson/viewport/20170814.html">
            
                
                    <a href="../../lesson/viewport/20170814.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        viewport
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="lesson/viewport/20170814-1.html">
            
                
                    <a href="../../lesson/viewport/20170814-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.1.</b>
                        
                        viewport特性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="lesson/viewport/20170815.html">
            
                
                    <a href="../../lesson/viewport/20170815.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        移动端项目
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1" data-path="lesson/viewport/20170816.html">
            
                
                    <a href="../../lesson/viewport/20170816.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.</b>
                        
                        倒霉
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1.1" data-path="lesson/viewport/0816-1.html">
            
                
                    <a href="../../lesson/viewport/0816-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.1.</b>
                        
                        css长度单位
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3.2" data-path="lesson/mobile-project/20170817project.html">
            
                
                    <a href="../../lesson/mobile-project/20170817project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.2.</b>
                        
                        mobile项目入手
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.3" data-path="lesson/mobile-project/20170818.html">
            
                
                    <a href="../../lesson/mobile-project/20170818.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.3.</b>
                        
                        记录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.4" data-path="lesson/viewport/20170821.html">
            
                
                    <a href="../../lesson/viewport/20170821.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.4.</b>
                        
                        项目中所遇的问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.5" data-path="lesson/viewport/20170822.html">
            
                
                    <a href="../../lesson/viewport/20170822.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.5.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.6" data-path="lesson/viewport/20170823.html">
            
                
                    <a href="../../lesson/viewport/20170823.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.6.</b>
                        
                        上交测试版
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.7" data-path="lesson/viewport/20170824.html">
            
                
                    <a href="../../lesson/viewport/20170824.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.7.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="lesson/css/20170830.html">
            
                
                    <a href="../../lesson/css/20170830.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        接触框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="lesson/css/20170831.html">
            
                
                    <a href="../../lesson/css/20170831.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        语法与规则 Rules
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >你好,欢迎来到MyNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x5B57;&#x4F53;&#x6837;&#x5F0F;">&#x5B57;&#x4F53;&#x6837;&#x5F0F;</h1>
<h3 id="font">font</h3>
<pre><code>&#x8BED;&#x6CD5;&#x987A;&#x5E8F;&#xFF1A;
</code></pre><p><code>font&#xFF1A;[ [ &lt;&apos; font-style &apos;&gt; || &lt;&apos; font-variant &apos;&gt; || &lt;&apos; font-weight &apos;&gt; ]? &lt;&apos; font-size &apos;&gt; [ / &lt;&apos; line-height &apos;&gt; ]? &lt;&apos; font-family &apos;&gt; ] |</code></p>
<blockquote>
<p>&#x8BF4;&#x660E;&#xFF1A;&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x6587;&#x672C;&#x7279;&#x6027;&#x3002;&#x8BE5;&#x5C5E;&#x6027;&#x662F;&#x590D;&#x5408;&#x5C5E;&#x6027;&#x3002;
    &#x4F7F;&#x7528;&#x7B2C;&#x4E00;&#x79CD;&#x58F0;&#x660E;&#x65B9;&#x5F0F;&#x53C2;&#x6570;&#x5FC5;&#x987B;&#x6309;&#x7167;&#x5982;&#x4E0A;&#x7684;&#x6392;&#x5217;&#x987A;&#x5E8F;&#xFF0C;&#x4E14; &lt;&apos; <strong>font-size</strong> &apos;&gt; &#x548C; &lt;&apos; <strong>font-family</strong> &apos;&gt; &#x662F;&#x4E0D;&#x53EF;&#x5FFD;&#x7565;&#x7684;&#x3002;&#x6BCF;&#x4E2A;&#x53C2;&#x6570;&#x4EC5;&#x5141;&#x8BB8;&#x6709;&#x4E00;&#x4E2A;&#x503C;&#x3002;</p>
</blockquote>
<pre><code class="lang-html">&#x6765;&#x770B;&#x4E2A;&#x793A;&#x4F8B;&#xFF0C;&#x89C1;&#x8BC1;&#x4E00;&#x4E0B;&#x771F;&#x60F3;&#xFF1A;
<span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span>&gt;</span><span class="css">
            <span class="hljs-class">.test</span><span class="hljs-rules">{
                <span class="hljs-comment">/*&#x8BBE;&#x7F6E;&#x6587;&#x5B57;&#x7684;&#x5B57;&#x4F53;
                 * 1.&#x53EF;&#x4EE5;&#x4F20;&#x5165;&#x591A;&#x4E2A;&#x503C;&#xFF0C;&#x7528;&#x9017;&#x53F7;&#x9694;&#x5F00;
                 * 2.&#x8BFB;&#x53D6;&#x7684;&#x987A;&#x5E8F;&#x662F;&#x4ECE;&#x5DE6;&#x5230;&#x53F3;&#xFF0C;&#x5982;&#x679C;&#x5DE6;&#x4FA7;&#x5B57;&#x4F53;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x5219;&#x8BFB;&#x4E0B;&#x4E00;&#x4F4D;&#xFF0C;&#x76F4;&#x5230;&#x4F7F;&#x7528;&#x7CFB;&#x7EDF;&#x5B57;&#x4F53;
                 * 3.&#x8BBE;&#x7F6E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5EFA;&#x8BAE;&#x5148;&#x5199;&#x897F;&#x6587;&#x5B57;&#x4F53;&#x3001;win&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x3001;mac&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x3001;&#x901A;&#x7528;&#x7684;&#x4E2D;&#x6587;&#x5B57;&#x4F53;
                 * 
                 * &#x6CE8;&#x610F;&#xFF1A;&#x5047;&#x5982;&#x8BBE;&#x8BA1;&#x4E2D;&#x7528;&#x5230;&#x975E;&#x4E3B;&#x6D41;&#x5B57;&#x4F53;
                 * 1.&#x7248;&#x6743;&#x95EE;&#x9898;
                 * 2.&#x8003;&#x8651;&#x5B57;&#x4F53;&#x5E93;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x897F;&#x6587;&#x5B57;&#x4F53;&#x5E93;&#x8FD8;&#x53EF;&#x4EE5;&#xFF08;&#x5927;&#x5C0F;&#x63A7;&#x5236;300k&#xFF09;&#xFF0C;&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x5C31;&#x529D;&#x5176;&#x653E;&#x5F03;
                 */</span>
                <span class="hljs-rule"><span class="hljs-attribute">font-family</span>:<span class="hljs-value"> <span class="hljs-string">&quot;&#x5FAE;&#x8F6F;&#x96C5;&#x9ED1;&quot;</span>,<span class="hljs-string">&quot;&#x9ED1;&#x4F53;&quot;</span>,<span class="hljs-string">&quot;&#x5B8B;&#x4F53;&quot;</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">50px</span></span></span>;<span class="hljs-comment">/*&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x5927;&#x5C0F;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> bold</span></span>;<span class="hljs-comment">/*&#x63A7;&#x5236;&#x52A0;&#x7C97;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">font-style</span>:<span class="hljs-value"> italic</span></span>;<span class="hljs-comment">/*&#x63A7;&#x5236;&#x5B57;&#x4F53;&#x659C;&#x4F53;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">font-variant</span>:<span class="hljs-value"> small-caps</span></span>;<span class="hljs-comment">/*&#x4E13;&#x95E8;&#x63A7;&#x5236;&#x897F;&#x6587;&#x5B57;&#x4F53;&#xFF0C;&#x5176;&#x4E2D;small-caps&#x4F1A;&#x8F6C;&#x6362;&#x5B57;&#x6BCD;&#x4E3A;&#x5927;&#x5199;&#xFF0C;&#x4F46;&#x662F;&#x5C3A;&#x5BF8;&#x8FD8;&#x662F;&#x5C0F;&#x5199;&#x5C3A;&#x5BF8;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">line-height</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;

                <span class="hljs-comment">/*&#x5185;&#x5BB9;&#x540C;&#x4E0A;&#x4E00;&#x6837;&#xFF0C;&#x53EA;&#x662F;&#x5199;&#x6CD5;&#x4E0D;&#x540C;*/</span>
                <span class="hljs-rule"><span class="hljs-attribute">font</span>:<span class="hljs-value">italic small-caps bold <span class="hljs-number">50px</span>/<span class="hljs-number">100px</span> <span class="hljs-string">&quot;&#x5FAE;&#x8F6F;&#x96C5;&#x9ED1;&quot;</span>,<span class="hljs-string">&quot;&#x9ED1;&#x4F53;&quot;</span>,<span class="hljs-string">&quot;&#x5B8B;&#x4F53;&quot;</span></span></span>;
            }</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;test&quot;</span>&gt;</span>
            &#x6D4B;&#x8BD5;&#x5B57;&#x4F53;bug
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<h3 id="&#x5B57;&#x4F53;&#x540D;&#x79F0;&#xFF08;fontfamily&#xFF09;">&#x5B57;&#x4F53;&#x540D;&#x79F0;&#xFF08;font-family&#xFF09;</h3>
<pre><code>&#x53D6;&#x503C;&#xFF1A;
</code></pre><table>
<thead>
<tr>
<th style="text-align:center">family-name</th>
<th style="text-align:center">generic-family</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">&#x5B57;&#x4F53;&#x540D;&#x79F0;&#x3002;&#x6309;&#x4F18;&#x5148;&#x987A;&#x5E8F;&#x6392;&#x5217;&#x3002;&#x4EE5;&#x9017;&#x53F7;&#x9694;&#x5F00;&#x3002;&#x5982;&#x679C;&#x5B57;&#x4F53;&#x540D;&#x79F0;&#x5305;&#x542B;&#x7A7A;&#x683C;&#x6216;&#x4E2D;&#x6587;&#xFF0C;&#x5219;&#x5E94;&#x4F7F;&#x7528;&#x5F15;&#x53F7;&#x62EC;&#x8D77;</td>
<td style="text-align:center">&#x5B57;&#x4F53;&#x5E8F;&#x5217;&#x540D;&#x79F0;</td>
</tr>
</tbody>
</table>
<pre><code>&#x8BF4;&#x660E;&#xFF1A;
&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x7528;&#x4E8E;&#x5BF9;&#x8C61;&#x4E2D;&#x6587;&#x672C;&#x7684;&#x5B57;&#x4F53;&#x540D;&#x79F0;&#x5E8F;&#x5217;&#x3002;
&#x5E8F;&#x5217;&#x53EF;&#x5305;&#x542B;&#x5D4C;&#x5165;&#x5B57;&#x4F53;&#x3002;
 &#x4E00;&#x822C;&#x5B57;&#x4F53;&#x5F15;&#x7528;&#x53EF;&#x4EE5;&#x4E0D;&#x52A0;&#x5F15;&#x53F7;&#xFF0C;&#x5982;&#x679C;&#x5B57;&#x4F53;&#x540D;&#x5305;&#x542B;&#x4E86;&#x7A7A;&#x683C;&#x3001;&#x6570;&#x5B57;&#x6216;&#x8005;&#x7B26;&#x53F7;&#xFF08;&#x5982;&#x8FDE;&#x63A5;&#x7B26;&#xFF09;&#x5219;&#x9700;&#x52A0;&#x4E0A;&#x5F15;&#x53F7;&#xFF0C;&#x907F;&#x514D;&#x5F15;&#x53D1;&#x9519;&#x8BEF;&#x3002;
&#x9ED8;&#x8BA4;&#x503C;&#xFF1A;&#x7531;user agent&#x51B3;&#x5B9A;
user agent&#x4F1A;&#x904D;&#x5386;&#x5B9A;&#x4E49;&#x7684;&#x5B57;&#x4F53;&#x5E8F;&#x5217;&#xFF0C;&#x76F4;&#x5230;&#x5339;&#x914D;&#x5230;&#x67D0;&#x4E2A;&#x5B57;&#x4F53;&#x4E3A;&#x6B62;&#x3002;
</code></pre><blockquote>
<ul>
<li>&#x8BBE;&#x7F6E;&#x6587;&#x5B57;&#x7684;&#x5B57;&#x4F53;   </li>
<li>&#x53EF;&#x4EE5;&#x4F20;&#x5165;&#x591A;&#x4E2A;&#x503C;&#xFF0C;&#x7528;&#x9017;&#x53F7;&#x9694;&#x5F00;   </li>
<li>&#x8BFB;&#x53D6;&#x7684;&#x987A;&#x5E8F;&#x662F;&#x4ECE;&#x5DE6;&#x5230;&#x53F3;&#xFF0C;&#x5982;&#x679C;&#x5DE6;&#x4FA7;&#x5B57;&#x4F53;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x5219;&#x8BFB;&#x4E0B;&#x4E00;&#x4F4D;&#xFF0C;&#x76F4;&#x5230;&#x4F7F;&#x7528;&#x7CFB;&#x7EDF;&#x5B57;&#x4F53;   </li>
<li>&#x8BBE;&#x7F6E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5EFA;&#x8BAE;&#x5148;&#x5199;&#x897F;&#x6587;&#x5B57;&#x4F53;&#x3001;win&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x3001;mac&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x3001;&#x901A;&#x7528;&#x7684;&#x4E2D;&#x6587;&#x5B57;&#x4F53;      </li>
<li><strong>&#x6CE8;&#x610F;&#xFF1A;</strong>&#x5047;&#x5982;&#x8BBE;&#x8BA1;&#x4E2D;&#x7528;&#x5230;&#x975E;&#x4E3B;&#x6D41;&#x5B57;&#x4F53;   </li>
<li>&#x7248;&#x6743;&#x95EE;&#x9898;   </li>
<li>&#x8003;&#x8651;&#x5B57;&#x4F53;&#x5E93;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x897F;&#x6587;&#x5B57;&#x4F53;&#x5E93;&#x8FD8;&#x53EF;&#x4EE5;&#xFF08;&#x5927;&#x5C0F;&#x63A7;&#x5236;300k&#xFF09;&#xFF0C;&#x4E2D;&#x6587;&#x5B57;&#x4F53;&#x5C31;&#x529D;&#x5176;&#x653E;&#x5F03;</li>
</ul>
</blockquote>
<pre><code class="lang-html">&#x6307;&#x5B9A;&#x5B57;&#x4F53;&#x5E8F;&#x5217;&#xFF1A;

&#x5199;&#x6CD5;&#xFF1A;body { font-family: helvetica, verdana, sans-serif; }

&#x5982;&#x4E0A;&#x5B57;&#x4F53;&#x5B9A;&#x4E49;&#xFF0C;&#x5047;&#x8BBE;&#x4F60;&#x673A;&#x5668;&#x4E0A;&#x6CA1;&#x6709;helvetica&#x5B57;&#x4F53;&#xFF0C;&#x4F46;&#x6709;verdana&#xFF0C;&#x8FD9;&#x65F6;&#x5C06;&#x4F1A;&#x4EE5;verdana&#x663E;&#x793A;&#x4F60;&#x7684;&#x6587;&#x5B57;&#x3002;
</code></pre>
<h3 id="&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#xFF08;fontsize&#xFF09;">&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#xFF08;font-size&#xFF09;</h3>
<blockquote>
<p>&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#xFF0C;&#x53EF;&#x4EE5;&#x4F20;&#x5165;&#x5177;&#x4F53;&#x6570;&#x503C;&#xFF0C;&#x6216;&#x767E;&#x5206;&#x6BD4;&#xFF08;&#x57FA;&#x4E8E;&#x5B83;&#x7684;&#x7236;&#x5143;&#x7D20;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x6765;&#x8BA1;&#x7B97;&#xFF09;</p>
<pre><code class="lang-html">&#x8BED;&#x6CD5;&#xFF1A;
font-size&#xFF1A;<span class="hljs-tag">&lt;<span class="hljs-title">absolute-size</span>&gt;</span> | <span class="hljs-tag">&lt;<span class="hljs-title">relative-size</span>&gt;</span> | <span class="hljs-tag">&lt;<span class="hljs-title">length</span>&gt;</span> | <span class="hljs-tag">&lt;<span class="hljs-title">percentage</span>&gt;</span>
</code></pre>
<pre><code class="lang-html">&#x53D6;&#x503C;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-title">absolute-size</span>&gt;</span>&#xFF1A;
    &#x6839;&#x636E;&#x5BF9;&#x8C61;&#x5B57;&#x53F7;&#x8FDB;&#x884C;&#x8C03;&#x8282;&#x3002;&#x4EE5; medium &#x4F5C;&#x4E3A;&#x57FA;&#x7840;&#x53C2;&#x7167;&#xFF0C;xx-small&#x76F8;&#x5F53;&#x4E8E;medium 3/5 (h6)&#xFF0C;x-small: 3/4&#xFF0C;small: 8/9 (h5)&#xFF0C;medium: 1 (h4)&#xFF0C;large: 6/5 (h3)&#xFF0C;x-large: 3/2 (h2)&#xFF0C;xx-large: 2/1 (h1)&#xFF0C;
<span class="hljs-tag">&lt;<span class="hljs-title">relative-size</span>&gt;</span>&#xFF1A;
    &#x76F8;&#x5BF9;&#x4E8E;&#x7236;&#x5BF9;&#x50CF;&#x4E2D;&#x5B57;&#x53F7;&#x8FDB;&#x884C;&#x76F8;&#x5BF9;&#x8C03;&#x8282;&#x3002;&#x4F7F;&#x7528;&#x6210;&#x6BD4;&#x4F8B;&#x7684;em&#x5355;&#x4F4D;&#x8BA1;&#x7B97;&#x3002;
<span class="hljs-tag">&lt;<span class="hljs-title">length</span>&gt;</span>&#xFF1A;
    &#x7528;&#x957F;&#x5EA6;&#x503C;&#x6307;&#x5B9A;&#x6587;&#x5B57;&#x5927;&#x5C0F;&#x3002;&#x4E0D;&#x5141;&#x8BB8;&#x8D1F;&#x503C;&#x3002;
<span class="hljs-tag">&lt;<span class="hljs-title">percentage</span>&gt;</span>&#xFF1A;
    &#x7528;&#x767E;&#x5206;&#x6BD4;&#x6307;&#x5B9A;&#x6587;&#x5B57;&#x5927;&#x5C0F;&#x3002;&#x5176;&#x767E;&#x5206;&#x6BD4;&#x53D6;&#x503C;&#x662F;&#x57FA;&#x4E8E;&#x7236;&#x5BF9;&#x8C61;&#x4E2D;&#x5B57;&#x4F53;&#x7684;&#x5C3A;&#x5BF8;&#x3002;&#x4E0D;&#x5141;&#x8BB8;&#x8D1F;&#x503C;&#x3002;
</code></pre>
</blockquote>
<pre><code class="lang-html">&#x5982;&#xFF1A;
<span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span>&gt;</span><span class="css">
            <span class="hljs-tag">p</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"><span class="hljs-number">50px</span></span></span>;    
            }</span>
            <span class="hljs-tag">p</span> <span class="hljs-tag">a</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"><span class="hljs-number">50%</span></span></span>;
            }</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>&#x8FD9;&#x91CC;&#x662F;&#x4E00;&#x6BB5;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x5F88;&#x957F;&#x7684;&#x6587;&#x5B57;<span class="hljs-tag">&lt;<span class="hljs-title">a</span>&gt;</span>&#x6211;&#x662F;&#x4E00;&#x4E2A;&#x5C0F;&#x6807;&#x7B7E;<span class="hljs-tag">&lt;<span class="hljs-title">a</span>/&gt;</span><span class="hljs-tag">&lt;<span class="hljs-title">p</span>/&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<pre><code class="lang-html">&#x793A;&#x4F8B;&#xFF1A;
<span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span>&gt;</span><span class="css">
            <span class="hljs-class">.test</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">margin</span>:<span class="hljs-value"><span class="hljs-number">15px</span> <span class="hljs-number">0</span></span></span>;
                    <span class="hljs-rule"><span class="hljs-attribute">border</span>:<span class="hljs-value"><span class="hljs-number">1px</span> solid <span class="hljs-hexcolor">#000</span></span></span>;
                }</span>
            <span class="hljs-class">.xx-small</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">xx-small</span></span>;
                }</span>
            <span class="hljs-class">.x-small</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">x-small</span></span>;
                }</span>
            <span class="hljs-class">.small</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">small</span></span>;
                }</span>
            <span class="hljs-class">.medium</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">medium</span></span>;
                }</span>
            <span class="hljs-class">.large</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">large</span></span>;
                }</span>
            <span class="hljs-class">.x-large</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">x-large</span></span>;
                }</span>
            <span class="hljs-class">.xx-large</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">xx-large</span></span>;
                }</span>
            <span class="hljs-class">.smaller</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">smaller</span></span>;
                }</span>
            <span class="hljs-class">.larger</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value">larger</span></span>;
                }</span>
            <span class="hljs-class">.float</span> <span class="hljs-tag">p</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"><span class="hljs-number">20px</span></span></span>;
                }</span>
            <span class="hljs-class">.percentage</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"><span class="hljs-number">20px</span></span></span>;
                }</span>
            <span class="hljs-class">.percentage</span> <span class="hljs-tag">span</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"><span class="hljs-number">60%</span></span></span>;
                }</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">ul</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;test&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;xx-small&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;xx-small&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>xx-small&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;x-small&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;x-small&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>x-small&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;small&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;small&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>small&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;medium&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;medium&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>medium&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;large&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;large&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>large&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;x-large&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;x-large&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>x-large&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;xx-large&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;xx-large&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>xx-large&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;samller&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;samller&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>samller&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;larger&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;larger&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>larger&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;float&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;20px&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>20px&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;percentage&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x4E3A;20px&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>&#x7236;&#x5BF9;&#x8C61;20px&#x5C3A;&#x5BF8;&#x7684;&#x6587;&#x5B57;&#x3002;<span class="hljs-tag">&lt;<span class="hljs-title">span</span>&gt;</span>&#x6211;&#x7684;&#x5C3A;&#x5BF8;&#x53EA;&#x662F;&#x7236;&#x5BF9;&#x8C61;&#x7684;60%<span class="hljs-tag">&lt;/<span class="hljs-title">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">ul</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<blockquote>
<p><strong>&#x9700;&#x6CE8;&#x610F;&#xFF1A;</strong></p>
<ul>
<li>&#x5728; Firefox, Chrome, and Safari &#x4E2D;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x65B0;&#x8C03;&#x6574;&#x4EE5;&#x4E0A;&#x4F8B;&#x5B50;&#x7684;&#x6587;&#x672C;&#x5927;&#x5C0F;&#xFF0C;&#x4F46;&#x662F;&#x5728; Internet Explorer &#x4E2D;&#x4E0D;&#x884C;&#x3002;<br>&#x867D;&#x7136;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x7F29;&#x653E;&#x5DE5;&#x5177;&#x8C03;&#x6574;&#x6587;&#x672C;&#x5927;&#x5C0F;&#xFF0C;&#x4F46;&#x662F;&#x8FD9;&#x5B9E;&#x9645;&#x4E0A;&#x662F;&#x5BF9;&#x6574;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x8C03;&#x6574;&#xFF0C;&#x800C;&#x4E0D;&#x4EC5;&#x9650;&#x4E8E;&#x6587;&#x672C;&#x3002;<br><strong>&#x8865;&#x5145;&#xFF1A;&#x4F7F;&#x7528; em &#x6765;&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x5927;&#x5C0F;</strong>   </li>
<li>&#x5982;&#x679C;&#x8981;&#x907F;&#x514D;&#x5728; Internet Explorer &#x4E2D;&#x65E0;&#x6CD5;&#x8C03;&#x6574;&#x6587;&#x672C;&#x7684;&#x95EE;&#x9898;&#xFF0C;&#x8BB8;&#x591A;&#x5F00;&#x53D1;&#x8005;&#x4F7F;&#x7528; em &#x5355;&#x4F4D;&#x4EE3;&#x66FF; pixels&#x3002;   </li>
<li>1em &#x7B49;&#x4E8E;&#x5F53;&#x524D;&#x7684;&#x5B57;&#x4F53;&#x5C3A;&#x5BF8;&#x3002;&#x5982;&#x679C;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#x7684; font-size &#x4E3A; 16 &#x50CF;&#x7D20;&#xFF0C;&#x90A3;&#x4E48;&#x5BF9;&#x4E8E;&#x8BE5;&#x5143;&#x7D20;&#xFF0C;1em &#x5C31;&#x7B49;&#x4E8E; 16 &#x50CF;&#x7D20;&#x3002;&#x5728;&#x8BBE;&#x7F6E;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x65F6;&#xFF0C;em &#x7684;&#x503C;&#x4F1A;&#x76F8;&#x5BF9;&#x4E8E;&#x7236;&#x5143;&#x7D20;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x6539;&#x53D8;&#x3002;   </li>
<li>&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x9ED8;&#x8BA4;&#x7684;&#x6587;&#x672C;&#x5927;&#x5C0F;&#x662F; 16 &#x50CF;&#x7D20;&#x3002;&#x56E0;&#x6B64; 1em &#x7684;&#x9ED8;&#x8BA4;&#x5C3A;&#x5BF8;&#x662F; 16 &#x50CF;&#x7D20;&#x3002;   </li>
<li>&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x8FD9;&#x4E2A;&#x516C;&#x5F0F;&#x5C06;&#x50CF;&#x7D20;&#x8F6C;&#x6362;&#x4E3A; em&#xFF1A;pixels/16=em<br>&#xFF08;&#x6CE8;&#xFF1A;16 &#x7B49;&#x4E8E;&#x7236;&#x5143;&#x7D20;&#x7684;&#x9ED8;&#x8BA4;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#xFF0C;&#x5047;&#x8BBE;&#x7236;&#x5143;&#x7D20;&#x7684; font-size &#x4E3A; 20px&#xFF0C;&#x90A3;&#x4E48;&#x516C;&#x5F0F;&#x9700;&#x6539;&#x4E3A;&#xFF1A;pixels/20=em&#xFF09;</li>
</ul>
</blockquote>
<h3 id="&#x5B57;&#x4F53;&#x53D8;&#x5F62;fontvariant">&#x5B57;&#x4F53;&#x53D8;&#x5F62;(font-variant)</h3>
<blockquote>
<p>font-variant &#x5C5E;&#x6027;&#x53EF;&#x4EE5;&#x8BBE;&#x5B9A;&#x5C0F;&#x578B;&#x5927;&#x5199;&#x5B57;&#x6BCD;   </p>
<ul>
<li>&#x5C0F;&#x578B;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#x4E0D;&#x662F;&#x4E00;&#x822C;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#xFF0C;&#x4E5F;&#x4E0D;&#x662F;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#xFF0C;&#x8FD9;&#x79CD;&#x5B57;&#x6BCD;&#x91C7;&#x7528;&#x4E0D;&#x540C;&#x5927;&#x5C0F;&#x7684;&#x5927;&#x5199;&#x5B57;&#x6BCD;</li>
<li>&#x4E13;&#x95E8;&#x63A7;&#x5236;&#x897F;&#x6587;&#x5B57;&#x4F53;&#xFF0C;&#x5176;&#x4E2D;small-caps&#x4F1A;&#x8F6C;&#x6362;&#x5B57;&#x6BCD;&#x4E3A;&#x5927;&#x5199;&#xFF0C;&#x4F46;&#x662F;&#x5C3A;&#x5BF8;&#x8FD8;&#x662F;&#x5C0F;&#x5199;&#x5C3A;&#x5BF8;</li>
</ul>
</blockquote>
<pre><code class="lang-html">&#x5B9E;&#x4F8B;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">
            <span class="hljs-tag">p</span><span class="hljs-class">.normal</span> <span class="hljs-rules">{
            <span class="hljs-rule"><span class="hljs-attribute">font-variant</span>:<span class="hljs-value"> normal</span></span>;
            }</span>
            <span class="hljs-tag">p</span><span class="hljs-class">.small</span> <span class="hljs-rules">{
            <span class="hljs-rule"><span class="hljs-attribute">font-variant</span>:<span class="hljs-value"> small-caps</span></span>;
            }</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;normal&quot;</span>&gt;</span>This is a paragraph<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;small&quot;</span>&gt;</span>this is a paragraph<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<h3 id="&#x5B57;&#x4F53;&#x52A0;&#x7C97;fontweight">&#x5B57;&#x4F53;&#x52A0;&#x7C97;(font-weight)</h3>
<blockquote>
<p>font-weight&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;&#x6587;&#x672C;&#x7684;&#x7C97;&#x7EC6;&#x3002;   </p>
<ul>
<li>&#x4F7F;&#x7528; bold &#x5173;&#x952E;&#x5B57;&#x53EF;&#x4EE5;&#x5C06;&#x6587;&#x672C;&#x8BBE;&#x7F6E;&#x4E3A;&#x7C97;&#x4F53;&#x3002;   </li>
<li>&#x5173;&#x952E;&#x5B57; 100 ~ 900 &#x4E3A;&#x5B57;&#x4F53;&#x6307;&#x5B9A;&#x4E86; 9 &#x7EA7;&#x52A0;&#x7C97;&#x5EA6;&#x3002;&#x5982;&#x679C;&#x4E00;&#x4E2A;&#x5B57;&#x4F53;&#x5185;&#x7F6E;&#x4E86;&#x8FD9;&#x4E9B;&#x52A0;&#x7C97;&#x7EA7;&#x522B;&#xFF0C;&#x90A3;&#x4E48;&#x8FD9;&#x4E9B;&#x6570;&#x5B57;&#x5C31;&#x76F4;&#x63A5;&#x6620;&#x5C04;&#x5230;&#x9884;&#x5B9A;&#x4E49;&#x7684;&#x7EA7;&#x522B;&#xFF0C;100 &#x5BF9;&#x5E94;&#x6700;&#x7EC6;&#x7684;&#x5B57;&#x4F53;&#x53D8;&#x5F62;&#xFF0C;900 &#x5BF9;&#x5E94;&#x6700;&#x7C97;&#x7684;&#x5B57;&#x4F53;&#x53D8;&#x5F62;&#x3002;&#x6570;&#x5B57; 400 &#x7B49;&#x4EF7;&#x4E8E; normal&#xFF0C;&#x800C; 700 &#x7B49;&#x4EF7;&#x4E8E; bold&#x3002;   </li>
<li>&#x5982;&#x679C;&#x5C06;&#x5143;&#x7D20;&#x7684;&#x52A0;&#x7C97;&#x8BBE;&#x7F6E;&#x4E3A; bolder&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x4F1A;&#x8BBE;&#x7F6E;&#x6BD4;&#x6240;&#x7EE7;&#x627F;&#x503C;&#x66F4;&#x7C97;&#x7684;&#x4E00;&#x4E2A;&#x5B57;&#x4F53;&#x52A0;&#x7C97;&#x3002;&#x4E0E;&#x6B64;&#x76F8;&#x53CD;&#xFF0C;&#x5173;&#x952E;&#x8BCD; lighter &#x4F1A;&#x5BFC;&#x81F4;&#x6D4F;&#x89C8;&#x5668;&#x5C06;&#x52A0;&#x7C97;&#x5EA6;&#x4E0B;&#x79FB;&#x800C;&#x4E0D;&#x662F;&#x4E0A;&#x79FB;&#x3002;</li>
</ul>
</blockquote>
<pre><code class="lang-html">&#x5B9E;&#x4F8B;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">
            <span class="hljs-tag">p</span><span class="hljs-class">.normal</span> <span class="hljs-rules">{<span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> normal}
            p.bold {font-weight: bold}
            p.thicker {font-weight: <span class="hljs-number">900</span>}
        </span></span></span></span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;normal&quot;</span>&gt;</span>This is a paragraph<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>    
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;bold&quot;</span>&gt;</span>This is a paragraph<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;thicker&quot;</span>&gt;</span>This is a paragraph<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<h3 id="&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#xFF08;fontstyle&#xFF09;">&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#xFF08;font-style&#xFF09;</h3>
<pre><code>&#x8BED;&#x6CD5;
</code></pre><table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">normal</td>
<td style="text-align:center">&#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x6B63;&#x5E38;&#x7684;&#x5B57;&#x4F53;</td>
</tr>
<tr>
<td style="text-align:center">italic</td>
<td style="text-align:center">&#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x659C;&#x4F53;&#x3002;&#x5BF9;&#x4E8E;&#x6CA1;&#x6709;&#x8BBE;&#x8BA1;&#x659C;&#x4F53;&#x7684;&#x7279;&#x6B8A;&#x5B57;&#x4F53;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x4F7F;&#x7528;&#x659C;&#x4F53;&#x5916;&#x89C2;&#x5C06;&#x5E94;&#x7528;oblique</td>
</tr>
<tr>
<td style="text-align:center">oblique</td>
<td style="text-align:center">&#x6307;&#x5B9A;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x4E3A;&#x503E;&#x659C;&#x7684;&#x5B57;&#x4F53;&#x3002;&#x4EBA;&#x4E3A;&#x7684;&#x4F7F;&#x6587;&#x5B57;&#x503E;&#x659C;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x53BB;&#x9009;&#x53D6;&#x5B57;&#x4F53;&#x4E2D;&#x7684;&#x659C;&#x4F53;&#x5B57;</td>
</tr>
</tbody>
</table>
<pre><code>&#x8BF4;&#x660E;&#xFF1A;
</code></pre><ul>
<li>&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x6587;&#x672C;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x3002;</li>
<li><p>&#x5BF9;&#x5E94;&#x7684;&#x811A;&#x672C;&#x7279;&#x6027;&#x4E3A;fontStyle&#x3002;</p>
<p>  &#x517C;&#x5BB9;&#x6027;&#xFF1A;&#x652F;&#x6301;IE6.0&#x7248;&#x672C;&#x4EE5;&#x4E0A;&#xFF0C;&#x5176;&#x4ED6;&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x652F;&#x6301;</p>
</li>
</ul>
<blockquote>
<p>italic &#x548C; oblique &#x7684;&#x533A;&#x522B;   </p>
<ul>
<li>font-style &#x975E;&#x5E38;&#x7B80;&#x5355;&#xFF1A;&#x7528;&#x4E8E;&#x5728; normal &#x6587;&#x672C;&#x3001;italic &#x6587;&#x672C;&#x548C; oblique &#x6587;&#x672C;&#x4E4B;&#x95F4;&#x9009;&#x62E9;&#x3002;&#x552F;&#x4E00;&#x6709;&#x70B9;&#x590D;&#x6742;&#x7684;&#x662F;&#x660E;&#x786E; italic &#x6587;&#x672C;&#x548C; oblique &#x6587;&#x672C;&#x4E4B;&#x95F4;&#x7684;&#x5DEE;&#x522B;&#x3002;   </li>
<li>&#x659C;&#x4F53;&#xFF08;italic&#xFF09;&#x662F;&#x4E00;&#x79CD;&#x7B80;&#x5355;&#x7684;&#x5B57;&#x4F53;&#x98CE;&#x683C;&#xFF0C;&#x5BF9;&#x6BCF;&#x4E2A;&#x5B57;&#x6BCD;&#x7684;&#x7ED3;&#x6784;&#x6709;&#x4E00;&#x4E9B;&#x5C0F;&#x6539;&#x52A8;&#xFF0C;&#x6765;&#x53CD;&#x6620;&#x53D8;&#x5316;&#x7684;&#x5916;&#x89C2;&#x3002;&#x4E0E;&#x6B64;&#x4E0D;&#x540C;&#xFF0C;&#x503E;&#x659C;&#xFF08;oblique&#xFF09;&#x6587;&#x672C;&#x5219;&#x662F;&#x6B63;&#x5E38;&#x7AD6;&#x76F4;&#x6587;&#x672C;&#x7684;&#x4E00;&#x4E2A;&#x503E;&#x659C;&#x7248;&#x672C;&#x3002;   </li>
<li>&#x901A;&#x5E38;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;italic &#x548C; oblique &#x6587;&#x672C;&#x5728; web &#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x770B;&#x4E0A;&#x53BB;&#x5B8C;&#x5168;&#x4E00;&#x6837;&#x3002;</li>
</ul>
</blockquote>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../lesson/css/20170725.html" class="navigation navigation-prev " aria-label="Previous page: 第二节课"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../lesson/css/0725-2.html" class="navigation navigation-next " aria-label="Next page: 文本描述"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
